<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the drawArc method from the Canvas class, for the Dart programming language.">
  <title>drawArc method - Canvas class - dart:ui library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="../..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">
  <!-- header placeholder -->
</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">flutter_form_builder</a></li>
    <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
    <li><a href="dart-ui/Canvas-class.html">Canvas</a></li>
    <li class="self-crumb">drawArc method</li>
  </ol>
  <div class="self-name">drawArc</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="index.html">flutter_form_builder</a></li>
      <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
      <li><a href="dart-ui/Canvas-class.html">Canvas</a></li>
      <li class="self-crumb">drawArc method</li>
    </ol>
    
    <h5>Canvas class</h5>
    <ol>
    
        <li class="section-title"><a href="dart-ui/Canvas-class.html#constructors">Constructors</a></li>
        <li><a href="dart-ui/Canvas/Canvas.html">Canvas</a></li>
    
        <li class="section-title inherited">
            <a href="dart-ui/Canvas-class.html#instance-properties">Properties</a>
        </li>
        <li class="inherited"><a href="dart-core/Object/hashCode.html">hashCode</a></li>
        <li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li>
    
        <li class="section-title"><a href="dart-ui/Canvas-class.html#instance-methods">Methods</a></li>
        <li><a href="dart-ui/Canvas/clipPath.html">clipPath</a></li>
        <li><a href="dart-ui/Canvas/clipRect.html">clipRect</a></li>
        <li><a href="dart-ui/Canvas/clipRRect.html">clipRRect</a></li>
        <li><a href="dart-ui/Canvas/drawArc.html">drawArc</a></li>
        <li><a href="dart-ui/Canvas/drawAtlas.html">drawAtlas</a></li>
        <li><a href="dart-ui/Canvas/drawCircle.html">drawCircle</a></li>
        <li><a href="dart-ui/Canvas/drawColor.html">drawColor</a></li>
        <li><a href="dart-ui/Canvas/drawDRRect.html">drawDRRect</a></li>
        <li><a href="dart-ui/Canvas/drawImage.html">drawImage</a></li>
        <li><a href="dart-ui/Canvas/drawImageNine.html">drawImageNine</a></li>
        <li><a href="dart-ui/Canvas/drawImageRect.html">drawImageRect</a></li>
        <li><a href="dart-ui/Canvas/drawLine.html">drawLine</a></li>
        <li><a href="dart-ui/Canvas/drawOval.html">drawOval</a></li>
        <li><a href="dart-ui/Canvas/drawPaint.html">drawPaint</a></li>
        <li><a href="dart-ui/Canvas/drawParagraph.html">drawParagraph</a></li>
        <li><a href="dart-ui/Canvas/drawPath.html">drawPath</a></li>
        <li><a href="dart-ui/Canvas/drawPicture.html">drawPicture</a></li>
        <li><a href="dart-ui/Canvas/drawPoints.html">drawPoints</a></li>
        <li><a href="dart-ui/Canvas/drawRawAtlas.html">drawRawAtlas</a></li>
        <li><a href="dart-ui/Canvas/drawRawPoints.html">drawRawPoints</a></li>
        <li><a href="dart-ui/Canvas/drawRect.html">drawRect</a></li>
        <li><a href="dart-ui/Canvas/drawRRect.html">drawRRect</a></li>
        <li><a href="dart-ui/Canvas/drawShadow.html">drawShadow</a></li>
        <li><a href="dart-ui/Canvas/drawVertices.html">drawVertices</a></li>
        <li><a href="dart-ui/Canvas/getSaveCount.html">getSaveCount</a></li>
        <li><a href="dart-ui/Canvas/restore.html">restore</a></li>
        <li><a href="dart-ui/Canvas/rotate.html">rotate</a></li>
        <li><a href="dart-ui/Canvas/save.html">save</a></li>
        <li><a href="dart-ui/Canvas/saveLayer.html">saveLayer</a></li>
        <li><a href="dart-ui/Canvas/scale.html">scale</a></li>
        <li><a href="dart-ui/Canvas/skew.html">skew</a></li>
        <li><a href="dart-ui/Canvas/transform.html">transform</a></li>
        <li><a href="dart-ui/Canvas/translate.html">translate</a></li>
        <li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
        <li class="inherited"><a href="dart-core/Object/toString.html">toString</a></li>
    
        <li class="section-title inherited"><a href="dart-ui/Canvas-class.html#operators">Operators</a></li>
        <li class="inherited"><a href="dart-core/Object/operator_equals.html">operator ==</a></li>
    
    
    
    
    
    </ol>
  </div><!--/.sidebar-offcanvas-->

  <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
      <div><h1><span class="kind-method">drawArc</span> method</h1></div>

    <section class="multi-line-signature">
      <span class="returntype">void</span>
            <span class="name ">drawArc</span>
(<wbr><span class="parameter" id="drawArc-param-rect"><span class="type-annotation"><a href="dart-ui/Rect-class.html">Rect</a></span> <span class="parameter-name">rect</span>, </span> <span class="parameter" id="drawArc-param-startAngle"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">startAngle</span>, </span> <span class="parameter" id="drawArc-param-sweepAngle"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">sweepAngle</span>, </span> <span class="parameter" id="drawArc-param-useCenter"><span class="type-annotation"><a href="dart-core/bool-class.html">bool</a></span> <span class="parameter-name">useCenter</span>, </span> <span class="parameter" id="drawArc-param-paint"><span class="type-annotation"><a href="dart-ui/Paint-class.html">Paint</a></span> <span class="parameter-name">paint</span></span>)
      
    </section>
    <section class="desc markdown">
      <p>Draw an arc scaled to fit inside the given rectangle. It starts from
startAngle radians around the oval up to startAngle + sweepAngle
radians around the oval, with zero radians being the point on
the right hand side of the oval that crosses the horizontal line
that intersects the center of the rectangle and with positive
angles going clockwise around the oval. If useCenter is true, the arc is
closed back to the center, forming a circle sector. Otherwise, the arc is
not closed, forming a circle segment.</p>
<p>This method is optimized for drawing arcs and should be faster than <a href="dart-ui/Path/arcTo.html">Path.arcTo</a>.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">void drawArc(Rect rect, double startAngle, double sweepAngle, bool useCenter, Paint paint) {
  assert(_rectIsValid(rect));
  assert(paint != null);
  _drawArc(rect.left, rect.top, rect.right, rect.bottom, startAngle,
           sweepAngle, useCenter, paint._objects, paint._data);
}</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    flutter_form_builder
      3.8.2
  </span>

  <!-- footer-text placeholder -->
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>
<!-- footer placeholder -->

</body>

</html>
